SftTree/NET 2.0

LinearGradientMode Property, HeadersClass Class

Softel vdm, Inc.

Defines the linear gradient mode used to render the available background area in cells in the column header area.

Syntax      HeadersClass Class (Softelvdm.SftTreeNET)

VB   

Public Property LinearGradientMode As LinearGradientMode

C#   

public LinearGradientMode LinearGradientMode { get; set; }

C++   

public: property LinearGradientMode LinearGradientMode {
        LinearGradientMode get();
        void set(LinearGradientMode value);
}

Property Value

The linear gradient mode.

LinearGradientMode

Value

Description

Horizontal

0

Specifies a gradient from left to right.

Vertical

1

Specifies a gradient from top to bottom.

ForwardDiagonal

2

Specifies a gradient from upper left to lower right.

BackwardDiagonal

3

Specifies a gradient from upper right to lower left.

The default value is LinearGradientMode.Horizontal.

Comments

The LinearGradientMode property defines the linear gradient mode used to render the available background area in cells in the column header area.

If the background colors are defined with starting and ending values (usually CellBaseClass.BackColor and CellBaseClass.BackColorEnd), the available area is rendered using a gradient fill.

The defined linear gradient mode is only used if the column header's appearance is defined as BackgroundAppearanceEnum.Clean. BackgroundAppearanceEnum.ButtonPlain or BackgroundAppearanceEnum.HeaderEmptyArea (AppearanceDefault or CellBaseClass.Appearance).


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com